home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / mozgnome / nsIGnomeVFSService.h < prev   
Encoding:
C/C++ Source or Header  |  2006-05-08  |  15.6 KB  |  379 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIGnomeVFSService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIGnomeVFSService_h__
  6. #define __gen_nsIGnomeVFSService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIUTF8StringEnumerator; /* forward declaration */
  18.  
  19. class nsIURI; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIGnomeVFSMimeApp */
  23. #define NS_IGNOMEVFSMIMEAPP_IID_STR "99ae024f-e869-4973-958b-54768a84295a"
  24.  
  25. #define NS_IGNOMEVFSMIMEAPP_IID \
  26.   {0x99ae024f, 0xe869, 0x4973, \
  27.     { 0x95, 0x8b, 0x54, 0x76, 0x8a, 0x84, 0x29, 0x5a }}
  28.  
  29. class NS_NO_VTABLE nsIGnomeVFSMimeApp : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IGNOMEVFSMIMEAPP_IID)
  33.  
  34.   enum { EXPECTS_URIS = 0 };
  35.  
  36.   enum { EXPECTS_PATHS = 1 };
  37.  
  38.   enum { EXPECTS_URIS_FOR_NON_FILES = 2 };
  39.  
  40.   /* readonly attribute AUTF8String id; */
  41.   NS_IMETHOD GetId(nsACString & aId) = 0;
  42.  
  43.   /* readonly attribute AUTF8String name; */
  44.   NS_IMETHOD GetName(nsACString & aName) = 0;
  45.  
  46.   /* readonly attribute AUTF8String command; */
  47.   NS_IMETHOD GetCommand(nsACString & aCommand) = 0;
  48.  
  49.   /* readonly attribute boolean canOpenMultipleFiles; */
  50.   NS_IMETHOD GetCanOpenMultipleFiles(PRBool *aCanOpenMultipleFiles) = 0;
  51.  
  52.   /* readonly attribute long expectsURIs; */
  53.   NS_IMETHOD GetExpectsURIs(PRInt32 *aExpectsURIs) = 0;
  54.  
  55.   /* readonly attribute nsIUTF8StringEnumerator supportedURISchemes; */
  56.   NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes) = 0;
  57.  
  58.   /* readonly attribute boolean requiresTerminal; */
  59.   NS_IMETHOD GetRequiresTerminal(PRBool *aRequiresTerminal) = 0;
  60.  
  61. };
  62.  
  63. /* Use this macro when declaring classes that implement this interface. */
  64. #define NS_DECL_NSIGNOMEVFSMIMEAPP \
  65.   NS_IMETHOD GetId(nsACString & aId); \
  66.   NS_IMETHOD GetName(nsACString & aName); \
  67.   NS_IMETHOD GetCommand(nsACString & aCommand); \
  68.   NS_IMETHOD GetCanOpenMultipleFiles(PRBool *aCanOpenMultipleFiles); \
  69.   NS_IMETHOD GetExpectsURIs(PRInt32 *aExpectsURIs); \
  70.   NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes); \
  71.   NS_IMETHOD GetRequiresTerminal(PRBool *aRequiresTerminal); 
  72.  
  73. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  74. #define NS_FORWARD_NSIGNOMEVFSMIMEAPP(_to) \
  75.   NS_IMETHOD GetId(nsACString & aId) { return _to GetId(aId); } \
  76.   NS_IMETHOD GetName(nsACString & aName) { return _to GetName(aName); } \
  77.   NS_IMETHOD GetCommand(nsACString & aCommand) { return _to GetCommand(aCommand); } \
  78.   NS_IMETHOD GetCanOpenMultipleFiles(PRBool *aCanOpenMultipleFiles) { return _to GetCanOpenMultipleFiles(aCanOpenMultipleFiles); } \
  79.   NS_IMETHOD GetExpectsURIs(PRInt32 *aExpectsURIs) { return _to GetExpectsURIs(aExpectsURIs); } \
  80.   NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes) { return _to GetSupportedURISchemes(aSupportedURISchemes); } \
  81.   NS_IMETHOD GetRequiresTerminal(PRBool *aRequiresTerminal) { return _to GetRequiresTerminal(aRequiresTerminal); } 
  82.  
  83. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  84. #define NS_FORWARD_SAFE_NSIGNOMEVFSMIMEAPP(_to) \
  85.   NS_IMETHOD GetId(nsACString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  86.   NS_IMETHOD GetName(nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  87.   NS_IMETHOD GetCommand(nsACString & aCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommand(aCommand); } \
  88.   NS_IMETHOD GetCanOpenMultipleFiles(PRBool *aCanOpenMultipleFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanOpenMultipleFiles(aCanOpenMultipleFiles); } \
  89.   NS_IMETHOD GetExpectsURIs(PRInt32 *aExpectsURIs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpectsURIs(aExpectsURIs); } \
  90.   NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedURISchemes(aSupportedURISchemes); } \
  91.   NS_IMETHOD GetRequiresTerminal(PRBool *aRequiresTerminal) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequiresTerminal(aRequiresTerminal); } 
  92.  
  93. #if 0
  94. /* Use the code below as a template for the implementation class for this interface. */
  95.  
  96. /* Header file */
  97. class nsGnomeVFSMimeApp : public nsIGnomeVFSMimeApp
  98. {
  99. public:
  100.   NS_DECL_ISUPPORTS
  101.   NS_DECL_NSIGNOMEVFSMIMEAPP
  102.  
  103.   nsGnomeVFSMimeApp();
  104.  
  105. private:
  106.   ~nsGnomeVFSMimeApp();
  107.  
  108. protected:
  109.   /* additional members */
  110. };
  111.  
  112. /* Implementation file */
  113. NS_IMPL_ISUPPORTS1(nsGnomeVFSMimeApp, nsIGnomeVFSMimeApp)
  114.  
  115. nsGnomeVFSMimeApp::nsGnomeVFSMimeApp()
  116. {
  117.   /* member initializers and constructor code */
  118. }
  119.  
  120. nsGnomeVFSMimeApp::~nsGnomeVFSMimeApp()
  121. {
  122.   /* destructor code */
  123. }
  124.  
  125. /* readonly attribute AUTF8String id; */
  126. NS_IMETHODIMP nsGnomeVFSMimeApp::GetId(nsACString & aId)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* readonly attribute AUTF8String name; */
  132. NS_IMETHODIMP nsGnomeVFSMimeApp::GetName(nsACString & aName)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* readonly attribute AUTF8String command; */
  138. NS_IMETHODIMP nsGnomeVFSMimeApp::GetCommand(nsACString & aCommand)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* readonly attribute boolean canOpenMultipleFiles; */
  144. NS_IMETHODIMP nsGnomeVFSMimeApp::GetCanOpenMultipleFiles(PRBool *aCanOpenMultipleFiles)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* readonly attribute long expectsURIs; */
  150. NS_IMETHODIMP nsGnomeVFSMimeApp::GetExpectsURIs(PRInt32 *aExpectsURIs)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* readonly attribute nsIUTF8StringEnumerator supportedURISchemes; */
  156. NS_IMETHODIMP nsGnomeVFSMimeApp::GetSupportedURISchemes(nsIUTF8StringEnumerator * *aSupportedURISchemes)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* readonly attribute boolean requiresTerminal; */
  162. NS_IMETHODIMP nsGnomeVFSMimeApp::GetRequiresTerminal(PRBool *aRequiresTerminal)
  163. {
  164.     return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166.  
  167. /* End of implementation class template. */
  168. #endif
  169.  
  170.  
  171. /* starting interface:    nsIGnomeVFSService */
  172. #define NS_IGNOMEVFSSERVICE_IID_STR "4d6b9f23-8682-41b3-bbff-937a958e6496"
  173.  
  174. #define NS_IGNOMEVFSSERVICE_IID \
  175.   {0x4d6b9f23, 0x8682, 0x41b3, \
  176.     { 0xbb, 0xff, 0x93, 0x7a, 0x95, 0x8e, 0x64, 0x96 }}
  177.  
  178. class NS_NO_VTABLE nsIGnomeVFSService : public nsISupports {
  179.  public: 
  180.  
  181.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IGNOMEVFSSERVICE_IID)
  182.  
  183.   /*** Application registry methods ***/
  184.   enum { APP_KEY_COMMAND = 0 };
  185.  
  186.   enum { APP_KEY_NAME = 1 };
  187.  
  188.   enum { APP_KEY_SUPPORTED_URI_SCHEMES = 2 };
  189.  
  190.   enum { APP_KEY_EXPECTS_URIS = 3 };
  191.  
  192.   /* void setAppStringKey (in AUTF8String id, in long key, in AUTF8String value); */
  193.   NS_IMETHOD SetAppStringKey(const nsACString & id, PRInt32 key, const nsACString & value) = 0;
  194.  
  195.   enum { APP_KEY_CAN_OPEN_MULTIPLE = 4 };
  196.  
  197.   enum { APP_KEY_REQUIRES_TERMINAL = 5 };
  198.  
  199.   /* void setAppBoolKey (in AUTF8String id, in long key, in boolean value); */
  200.   NS_IMETHOD SetAppBoolKey(const nsACString & id, PRInt32 key, PRBool value) = 0;
  201.  
  202.   /* void addMimeType (in AUTF8String id, in AUTF8String mimeType); */
  203.   NS_IMETHOD AddMimeType(const nsACString & id, const nsACString & mimeType) = 0;
  204.  
  205.   /* void syncAppRegistry (); */
  206.   NS_IMETHOD SyncAppRegistry(void) = 0;
  207.  
  208.   /*** MIME registry methods ***/
  209.   /* AUTF8String getMimeTypeFromExtension (in AUTF8String extension); */
  210.   NS_IMETHOD GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval) = 0;
  211.  
  212.   /* nsIGnomeVFSMimeApp getAppForMimeType (in AUTF8String mimeType); */
  213.   NS_IMETHOD GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp **_retval) = 0;
  214.  
  215.   /* void setAppForMimeType (in AUTF8String mimeType, in AUTF8String id); */
  216.   NS_IMETHOD SetAppForMimeType(const nsACString & mimeType, const nsACString & id) = 0;
  217.  
  218.   /* AUTF8String getDescriptionForMimeType (in AUTF8String mimeType); */
  219.   NS_IMETHOD GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval) = 0;
  220.  
  221.   /* void setIconForMimeType (in AUTF8String mimeType, in AUTF8String iconPath); */
  222.   NS_IMETHOD SetIconForMimeType(const nsACString & mimeType, const nsACString & iconPath) = 0;
  223.  
  224.   /* void setMimeExtensions (in AUTF8String mimeType, in AUTF8String extensionsList); */
  225.   NS_IMETHOD SetMimeExtensions(const nsACString & mimeType, const nsACString & extensionsList) = 0;
  226.  
  227.   /*** Misc. methods ***/
  228.   /* void showURI (in nsIURI uri); */
  229.   NS_IMETHOD ShowURI(nsIURI *uri) = 0;
  230.  
  231. };
  232.  
  233. /* Use this macro when declaring classes that implement this interface. */
  234. #define NS_DECL_NSIGNOMEVFSSERVICE \
  235.   NS_IMETHOD SetAppStringKey(const nsACString & id, PRInt32 key, const nsACString & value); \
  236.   NS_IMETHOD SetAppBoolKey(const nsACString & id, PRInt32 key, PRBool value); \
  237.   NS_IMETHOD AddMimeType(const nsACString & id, const nsACString & mimeType); \
  238.   NS_IMETHOD SyncAppRegistry(void); \
  239.   NS_IMETHOD GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval); \
  240.   NS_IMETHOD GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp **_retval); \
  241.   NS_IMETHOD SetAppForMimeType(const nsACString & mimeType, const nsACString & id); \
  242.   NS_IMETHOD GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval); \
  243.   NS_IMETHOD SetIconForMimeType(const nsACString & mimeType, const nsACString & iconPath); \
  244.   NS_IMETHOD SetMimeExtensions(const nsACString & mimeType, const nsACString & extensionsList); \
  245.   NS_IMETHOD ShowURI(nsIURI *uri); 
  246.  
  247. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  248. #define NS_FORWARD_NSIGNOMEVFSSERVICE(_to) \
  249.   NS_IMETHOD SetAppStringKey(const nsACString & id, PRInt32 key, const nsACString & value) { return _to SetAppStringKey(id, key, value); } \
  250.   NS_IMETHOD SetAppBoolKey(const nsACString & id, PRInt32 key, PRBool value) { return _to SetAppBoolKey(id, key, value); } \
  251.   NS_IMETHOD AddMimeType(const nsACString & id, const nsACString & mimeType) { return _to AddMimeType(id, mimeType); } \
  252.   NS_IMETHOD SyncAppRegistry(void) { return _to SyncAppRegistry(); } \
  253.   NS_IMETHOD GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval) { return _to GetMimeTypeFromExtension(extension, _retval); } \
  254.   NS_IMETHOD GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp **_retval) { return _to GetAppForMimeType(mimeType, _retval); } \
  255.   NS_IMETHOD SetAppForMimeType(const nsACString & mimeType, const nsACString & id) { return _to SetAppForMimeType(mimeType, id); } \
  256.   NS_IMETHOD GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval) { return _to GetDescriptionForMimeType(mimeType, _retval); } \
  257.   NS_IMETHOD SetIconForMimeType(const nsACString & mimeType, const nsACString & iconPath) { return _to SetIconForMimeType(mimeType, iconPath); } \
  258.   NS_IMETHOD SetMimeExtensions(const nsACString & mimeType, const nsACString & extensionsList) { return _to SetMimeExtensions(mimeType, extensionsList); } \
  259.   NS_IMETHOD ShowURI(nsIURI *uri) { return _to ShowURI(uri); } 
  260.  
  261. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  262. #define NS_FORWARD_SAFE_NSIGNOMEVFSSERVICE(_to) \
  263.   NS_IMETHOD SetAppStringKey(const nsACString & id, PRInt32 key, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppStringKey(id, key, value); } \
  264.   NS_IMETHOD SetAppBoolKey(const nsACString & id, PRInt32 key, PRBool value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppBoolKey(id, key, value); } \
  265.   NS_IMETHOD AddMimeType(const nsACString & id, const nsACString & mimeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMimeType(id, mimeType); } \
  266.   NS_IMETHOD SyncAppRegistry(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SyncAppRegistry(); } \
  267.   NS_IMETHOD GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeTypeFromExtension(extension, _retval); } \
  268.   NS_IMETHOD GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppForMimeType(mimeType, _retval); } \
  269.   NS_IMETHOD SetAppForMimeType(const nsACString & mimeType, const nsACString & id) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppForMimeType(mimeType, id); } \
  270.   NS_IMETHOD GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescriptionForMimeType(mimeType, _retval); } \
  271.   NS_IMETHOD SetIconForMimeType(const nsACString & mimeType, const nsACString & iconPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIconForMimeType(mimeType, iconPath); } \
  272.   NS_IMETHOD SetMimeExtensions(const nsACString & mimeType, const nsACString & extensionsList) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMimeExtensions(mimeType, extensionsList); } \
  273.   NS_IMETHOD ShowURI(nsIURI *uri) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowURI(uri); } 
  274.  
  275. #if 0
  276. /* Use the code below as a template for the implementation class for this interface. */
  277.  
  278. /* Header file */
  279. class nsGnomeVFSService : public nsIGnomeVFSService
  280. {
  281. public:
  282.   NS_DECL_ISUPPORTS
  283.   NS_DECL_NSIGNOMEVFSSERVICE
  284.  
  285.   nsGnomeVFSService();
  286.  
  287. private:
  288.   ~nsGnomeVFSService();
  289.  
  290. protected:
  291.   /* additional members */
  292. };
  293.  
  294. /* Implementation file */
  295. NS_IMPL_ISUPPORTS1(nsGnomeVFSService, nsIGnomeVFSService)
  296.  
  297. nsGnomeVFSService::nsGnomeVFSService()
  298. {
  299.   /* member initializers and constructor code */
  300. }
  301.  
  302. nsGnomeVFSService::~nsGnomeVFSService()
  303. {
  304.   /* destructor code */
  305. }
  306.  
  307. /* void setAppStringKey (in AUTF8String id, in long key, in AUTF8String value); */
  308. NS_IMETHODIMP nsGnomeVFSService::SetAppStringKey(const nsACString & id, PRInt32 key, const nsACString & value)
  309. {
  310.     return NS_ERROR_NOT_IMPLEMENTED;
  311. }
  312.  
  313. /* void setAppBoolKey (in AUTF8String id, in long key, in boolean value); */
  314. NS_IMETHODIMP nsGnomeVFSService::SetAppBoolKey(const nsACString & id, PRInt32 key, PRBool value)
  315. {
  316.     return NS_ERROR_NOT_IMPLEMENTED;
  317. }
  318.  
  319. /* void addMimeType (in AUTF8String id, in AUTF8String mimeType); */
  320. NS_IMETHODIMP nsGnomeVFSService::AddMimeType(const nsACString & id, const nsACString & mimeType)
  321. {
  322.     return NS_ERROR_NOT_IMPLEMENTED;
  323. }
  324.  
  325. /* void syncAppRegistry (); */
  326. NS_IMETHODIMP nsGnomeVFSService::SyncAppRegistry()
  327. {
  328.     return NS_ERROR_NOT_IMPLEMENTED;
  329. }
  330.  
  331. /* AUTF8String getMimeTypeFromExtension (in AUTF8String extension); */
  332. NS_IMETHODIMP nsGnomeVFSService::GetMimeTypeFromExtension(const nsACString & extension, nsACString & _retval)
  333. {
  334.     return NS_ERROR_NOT_IMPLEMENTED;
  335. }
  336.  
  337. /* nsIGnomeVFSMimeApp getAppForMimeType (in AUTF8String mimeType); */
  338. NS_IMETHODIMP nsGnomeVFSService::GetAppForMimeType(const nsACString & mimeType, nsIGnomeVFSMimeApp **_retval)
  339. {
  340.     return NS_ERROR_NOT_IMPLEMENTED;
  341. }
  342.  
  343. /* void setAppForMimeType (in AUTF8String mimeType, in AUTF8String id); */
  344. NS_IMETHODIMP nsGnomeVFSService::SetAppForMimeType(const nsACString & mimeType, const nsACString & id)
  345. {
  346.     return NS_ERROR_NOT_IMPLEMENTED;
  347. }
  348.  
  349. /* AUTF8String getDescriptionForMimeType (in AUTF8String mimeType); */
  350. NS_IMETHODIMP nsGnomeVFSService::GetDescriptionForMimeType(const nsACString & mimeType, nsACString & _retval)
  351. {
  352.     return NS_ERROR_NOT_IMPLEMENTED;
  353. }
  354.  
  355. /* void setIconForMimeType (in AUTF8String mimeType, in AUTF8String iconPath); */
  356. NS_IMETHODIMP nsGnomeVFSService::SetIconForMimeType(const nsACString & mimeType, const nsACString & iconPath)
  357. {
  358.     return NS_ERROR_NOT_IMPLEMENTED;
  359. }
  360.  
  361. /* void setMimeExtensions (in AUTF8String mimeType, in AUTF8String extensionsList); */
  362. NS_IMETHODIMP nsGnomeVFSService::SetMimeExtensions(const nsACString & mimeType, const nsACString & extensionsList)
  363. {
  364.     return NS_ERROR_NOT_IMPLEMENTED;
  365. }
  366.  
  367. /* void showURI (in nsIURI uri); */
  368. NS_IMETHODIMP nsGnomeVFSService::ShowURI(nsIURI *uri)
  369. {
  370.     return NS_ERROR_NOT_IMPLEMENTED;
  371. }
  372.  
  373. /* End of implementation class template. */
  374. #endif
  375.  
  376. #define NS_GNOMEVFSSERVICE_CONTRACTID "@mozilla.org/gnome-vfs-service;1"
  377.  
  378. #endif /* __gen_nsIGnomeVFSService_h__ */
  379.